fix old function call