adding destroy implementation