new method to get match id