format lines