prepare preview