handled the case where the user has asked for more documents than are available