editing to make the paddings proper