implemented list parsing