clean up functions at the end of payin