swap order of traces and sources layers