corrected the filtering section