* by_scope fixed