removed nagels algoritm, learned about it the hard way