removing useless distinct paddings
adding comments
fixed not setting padding properly