improved inactivesearch