better thanks, although I don't see why the interim variable 'settings' is defined only to be used once...?