change segment algorithm in LAOF