detecting slot #