clean up vector to accept free function on creation.