insert method with rotation