two layer ranking