Performance of extend improved

Performance of extend improved,