pulled config out of func to remember values