use scope for validation