simplify code for iron pipe facing check