fixed read code example