added other result options and a break to stop loop