credit method added