Where metals such as Ru and Re show excellent p-FET properties (metal work function close to the semiconductor valence band edge) right after deposition, the work function shifts strongly-towards the middle of the semiconductor band gap (midgap) after rapid-thermal anneal RTA) in inert atmospheres such as nitrogen.