replace where[0] with findWhere