+iteration over multiple users, write data to file