changed the number of frames for calculating correlation function