~ pattern matching replace braces and conditionals