added console log for hitTest