removed co-routine to preserver generator processing flow