proper expression precedence and printing