added vector expansion