changed alignment procedure order