this line should be moved above SLOT_NUM since it is not ifdef guarded.