corrected some algorithms...started the transition