corrected the code example to reflect actual state of code