editing source to implement gantt length feature