added getList function