removed previewmode