adding paddings and adjusting a bit