solve compile method order problem