WIP : added wrapper function for function run through reduce

 - likely still buggy,
 - needs tests