update log and feedback code