add native code to function each