get results as array