fixed typo, cleaned up measure_sds