need help to disable a function in my script