adding credit method