before creating channel parameter 2D arrays