my feelbe attempt to overcome group() indentation issues.  Feel free to improve