first try of new algorithme