added filter function to rows