added segment controller