added elsif pattern and inline if/unless