got rid of an extra method -- valid -- make use of checkSanity instead