preview generated properly