added add_pad method