changing charge variables