modified code to allow for admin payment