moving to ids and adding destructor