returning template map