buggy update for pi
still buggy: adding phi to update_pi kernel