another fix for create_matches