update for hit test