partially working implementation of rotating feature