more of the alogirthm