made view definition simpler