filter matrix validation