removed obsolete function.