add z position in event model