update for preview