Count gDischarge from 1 so it works as it should!!