modified nonzeromode warning