get rid of unnecessary padding