added the usage of BinaryBuffer