updated influence calculator further to save to xml