write a stub for the reduce kernel