add the map function into cabinet