fixed bot_logic