fix view method