some refactor of forall edges and faces