for validation