so effectively we take our input pattern we take our tuple we force is through our function here we get our value out sum value of of the tuple and that's j and that indicates within the weight array that we're looking at which weight we actually set.