metode row and column masking