updated reduceFrames