we need this method to be exposed so we can use it in the transpilers.