hit detection.