fixed the code example