Magnetic changes observed in the formation of two filaments in a complex active region: TRACE and MSDP observations