added func call readmapname