combine all attrs in structure to clarify code