check for prompt