added self-executing anonymous function

added self-executing anonymous function