function naeg()

added function naeg()