added division check in printexpr