cleaned up vector_free