adjust rawProgress and progress