refactored Parser: added braces for single lined