fixes in binary insertion