developing mi attempt logic