MOD: change BOOL to standard bool