updated pub code