better inf detection