added flush to ranking