change the custom-function