corrected routine used for auto-adding system