made totalpercentchange more modular