replace settings variable