fixing EOF to prevent warning on bash