add nonzero methods to support existing code