adding changes for type.bool