fixing bugs, working on unpaired table line function