add code configs to rows, blocks and cols