marging and padding corrections