setting up logic to receive hits