added print list function