added in payment function: add and Delete