edit publication_date create function