added Tmean to res