add generator in case of BOOL