active record of scope