new scalar products, fixing a bug in filter matrix