correction to code to change prompt for formula