added publication check