added global variable secondsToRecord