get results uses local array and returns results