defaultsformatter; string formats; groupby loop rewrites