Uniformly use filter isntead of filter_by