implemented list and fix a bug found by test (list)