group by register types