modified binaryConverter