resolve binary bugs, but algorithm has limitations