edited to use WRITELINEEQUALSZERO