changed bool to boolean