first pas at typed edges