rotate and Nth from end added