found an error in the updating of code