added destruct method along with unset function