rotate method added