init process to function.