some minor change.
only print non-zero entries.