removed unused reduce method