updated first filtering command