components now delete correctly