sor.c update