update up and down padding