deleted previewDomain code