generate method is now void.