add function to load and rotate