extend with constructor
lenght in prototype fix