update validity