can check which line is complete.  Work on clearlines()