fir writing error on reduced.r