rename 'currSample' to 'currFrame'