use array replace vector and shorten feature representation