connected to karims code