define inst function