changed line generation