updating nat to use variables