update padding for small