some algorithm wited with c