new fmappping function