set global self invocated function