change end to destroy