implemented list command