starting from scratch- for event listening on z axis