matches with depth