added some comments, removed an unnecessary .list()