added inversion filter