rearranging repo