print the values of non-zero variables