implemented create slot logic