sorted out line formatting