added code to evaluate object ranking