added auto id checker