added settings function to params