made alg even betterer