changes to algorithm