modify log and delete print