check settings function