added total map function in repres.R