move from named_scope to scope