remove padding from the list