edited method in charges controller