cleaned code, update and getting hit counter made as functions