add inital version of rot function