using any? instead of detect