updated getID code