added Enrt function