discovered higher level write line function