converted eq and eq_check to return generators