remove obsolete function