switch order of view lookup