encoding to vector enabled