modified overlap check to correct overlap at both ends of a new recording.