test algorithm added as error output help