replaced a function with core one