flagging variables fixed