Split local function and function won‘t return error

For now, we are confused local function and function that won’t return an error, maybe we need to split them.