update common code