sor method is done