Use scope instead of select