accept extra layer for grouping