added some rotation utils.