removed viewdir