modify BOOL to C_BOOL