add filters and operators, median algorithm