added support for bool datatype