updating of p/e/m every tick