made some changes to try to fix create_matches error
merged correctly