two functions are already in the core script.