changed to apply settings