removed prompts for user and replaced with error messages