changed code example