fixing the view to match type and value