fix compile error
add ranking class

based on outer class and config, without any variable operations