main to static