matchedUsers function now works