have to set function name before instructions get created