clean out old function