rearranging path