change function code fork to compile fork