trying to fix rotation problems