mid process with generators