changed prompt to y or n