expanded all() to include deep iteration functionality