add expression printing function