implememnted a smother filtering criteria