use scopes instead of conditions