added support for boolean type