update hits function to support accurate hits