hit logic