update references to functions