changed bool to int32 type