tried to implement map-reduce, with no luck!...