added code for charges