trying out updating doc after processing
trying out storing frames after processing