improve polygon rotation