change build default rule logic