changed EOF treating