more work on coset table code