updating version and adding destroy method