add lines to end