added alert, so result displays in both alert and console