undo previous commit
fix lambda to work with list of matches again