extracting out map in to an interface