adding class conver to binary