modified line_id creation