working for GSE62992
fixed some map-reduce bugs