use BOOL instead of BIT