added filter to make rule between rows, but not very DRY