previews, refactoring