recursive printing of generic maps