works for simplest of matching
1st working version