create and use BinaryArray type
fix exception message