finish the api of slot