added puts test to see if twi handle is there
reference to wrong pattern var