Adding map in recursive form