switched to rank instead of score