put segment function in use