remove old function.