updated ror x axis transition logic