build second phase