working on settings functions