Replace vector with list