add rotate function, will add how to call it later