apply log to the bag