removed the & before :+ in reduce