pretty good version up and running with hitting algorithm