implement rotation for one shape