modified for orm views file