puting only 1 declaration per group