get rid of useless padding