correct buildCode