lol pattern matching