modified settings algorithm