removed extra write of line