applying padding