Cleanup: removed unused variable "reduce"