tools for validation