added variable promptInvalid