function doc update to init migration