rotation funtion and correspondance among them written