convert list to generator in bootstrap methods