updates algorithm initialization