testing the list function