added function to remove zeros from filter, to save disc space