add to settings function