all function are converted to methods