refactoring/refining weights for rotation