some attempts to create previews, saving the refactor in case I use it later