adding sort3 and frac1