correcting mapreduceserver function