added deconstructor