rotate method skeleton