segments are not working correctly