checking for existing out files