last minute algorithm change in the lecture