showResults as separete function