updating the valid/invalid definitions.