using double precision in filter implementation