worked on preview integration