use makedownpad
update to function