add result and an alert to show the result