corrected mistake in def of extend