alogirthm changes