simple hit detection