improving the value valid logic