fixed error in list() calls