moved settings out and added get method2