update API for all()