stuff
almost done with refill tray function