implment method for maptype