replace Gw by Hw, Gb by Hb