fixing line shrink and printing zero for no changes