made some corrections after failed validation