define fetch method on preview class