Refactored Paddings based on weights