adding the top-N problem