- fixed an obsolete function