finish ann mapper and reducer