adding block syntax "{}" and removing if "end" and adding condition parentheses "()"