adding createTableLine function to script