added lp and hp filter functions