robot logic modification