work on memory issues with motion correction