altered for validation