add support to ternary expressions and while statements