changed map to point function signature instead of empty interface - more type safe