finish filter function and display its detail.