change to use new pad function