now will work for each prompt