addded a pad method.