bug fix, changed all() to any()