change slot logic