setting up rotation in cup layer