getMatchIds and getMatch functions

formatting