remove unnecessary var from leftPadding, make pad var clearer