reduce is working