removed extraneous checking to see if settings is defined code