build correctly