a bit code optimization to resolve #23 PR