logic for settings added