base lastvalid on validpositions