nicer output format for function