non-working, initial version of map reduce