improved printExpression, removed unnecessary intrinsics