added line extension code