padding functionality added