change predict for fern