add key property to models for grouping