functional ranking -- need to format output