have algo right