changed length to size in  func1 call