type-check error in measures