next_layer generator