make filter array copy generalizable