adding the flag to the optimization