added check to see if curr is still valid.