added check hit func