adding ability to dynamically change charge and distance