remove old unused function