handled condition when sentences are not found