Forgot to move a method used by generate_clause method