EOF ret code added