Made return value of  align to error values