removing extra self-executing function