removed a method call to destory in index