tweaks in deleting class