almost fixed brain choosing logic