correct nonzeros now