added a list function