notes for apply_all