add max_key name to output key