added destroy() method