added destroyList code