updating to 2009 algorithm to alleviate hangs