adjust scope for prompt variables