now using correct function to print out lists