added settings functions
added const type