imporve the rotate performaces