added additional filtering to improve accuracy