added var for cost of pattern wire