replaced external variables with longest line