added wtr=wtr argument to metab()