boundary check on heur