better support grouped table