change if to build