simplified wt_gmr.hpp
fixed bug in wt_gmr_2