fix obsolete function name