removed obsolete rotate function