modified all()'s output format