make transformations before checking 2 addresscode constraints