more validity checks