adding public interface for preview