updated online learning as offline learning