updating code with new settings