code trim in binary table class