algorithm is working, i'm during tests