clean up payment acript a little