minor mistake in inheritance