added destroy method and improved init method