more work with categorical decoder