fixed typo with the example code using .all()