logic problem added