test map with new function