fixed compile method