refactored weight settings