added length increment to insert and prepend methods