reduce function done
where function done