using alorithm reverse function