working hit test