redundant loop iteration in settings file