update partmatch.c for standard variation