fixed EOF attempt 1