hitmap to events