updating the quilting filter implementation