rearranging error code