some fixes according to the code example