fixed code example