added longest line with external variables