attempted algo fix -didn't work