quick fix to mapReduce. added try/catch to mean