Change the way to alter segment on block creation