improve binary class in bin file