func to func2