modify log and entity and controller