the rotate function can't work.