made flag A active low