update nonzero definition for scalars