declared w0 to avoid Python API calls