segment control is now working