before publish2