repo views rewritten