changed functionInit behavior