changed filter method for firefox