return results from loop