added segment control