modified sanity checks; implemented minor methods