remove bars and add bar.endDate method