changed alert  to prompt