needed to change the tests for ret so the final expression in the ret expression did not have the same value as the variable being returned