use whole file if no selection