update generate list method