refactored, added get_hits