remove ref to old function