new function of map test