segment select write formate code style