working on preview for error