reversing input with filter