refactor slot clearing