generalize table generation tested for SHS