mapViaFold is badly implemented