add a take function to experimental filter code