update hot algorithm