completed accidentally missing piece of code