use list_first_rest/3 in tuples_in/2