move loop to new_entries()