removed unnecessary code from alignment