woooooooo map reduce functionalityyyy