remove the junk from the end of the line here?