An apparatus, comprising: at least one processor; a memory including computer program code, the memory and the computer program code configured to, working with the processor, cause the apparatus to perform at least the following: entropy decode x- and y-coordinates indicating a horizontal position and a vertical position, respectively, of a last non-zero coefficient of a plurality of coefficients of a block of video data according to one of a first scanning order or a second scanning order used to encode the block, the second scanning order being different from the first scanning order; in circumstances where the coefficients of the block of video data are scanned in the first scanning order: interchange the entropy decoded x- and y-coordinates to get interchanged x- and y- coordinates; and decode the coefficients of the block of video data based on the interchanged x-and y-coordinates; in circumstances where the coefficients of the block of video data are scanned in the second scanning order: decode the coefficients of the block of video data based on the entropy decoded x- and y-coordinates; generate a residual block for the block of video data based, at least in part, on the decoded coefficients of the block of video data; and reconstruct the block of video data based, at least in part, on the generated residual block, wherein the x-coordinate and the interchanged y-coordinate, and the y-coordinate and the interchanged x-coordinate, respectively, are encoded using context adaptive entropy coding with common statistics that are based on at least one context, the common statistics indicating a probability of each of the x- and y- coordinates comprising a given value, the common statistics being updated based on the x-coordinate and the interchanged y-coordinate, and based on the y-coordinate and the interchanged x-coordinate, respectively; and wherein each of the probability of the x- and y-coordinate comprising a given value when scanned in the second scanning order is the same as or similar to the probability of the interchanged x- and y- coordinate, respectively, comprising the given value when the coefficients are scanned in the first scanning order. entropy decode x- and y-coordinates indicating a horizontal position and a vertical position, respectively, of a last non-zero coefficient of a plurality of coefficients of a block of video data according to one of a first scanning order or a second scanning order used to encode the block, the second scanning order being different from the first scanning order; in circumstances where the coefficients of the block of video data are scanned in the first scanning order: interchange the entropy decoded x- and y-coordinates to get interchanged x- and y- coordinates; and decode the coefficients of the block of video data based on the interchanged x-and y-coordinates; interchange the entropy decoded x- and y-coordinates to get interchanged x- and y- coordinates; and decode the coefficients of the block of video data based on the interchanged x-and y-coordinates; in circumstances where the coefficients of the block of video data are scanned in the second scanning order: decode the coefficients of the block of video data based on the entropy decoded x- and y-coordinates; generate a residual block for the block of video data based, at least in part, on the decoded coefficients of the block of video data; and reconstruct the block of video data based, at least in part, on the generated residual block, wherein the x-coordinate and the interchanged y-coordinate, and the y-coordinate and the interchanged x-coordinate, respectively, are encoded using context adaptive entropy coding with common statistics that are based on at least one context, the common statistics indicating a probability of each of the x- and y- coordinates comprising a given value, the common statistics being updated based on the x-coordinate and the interchanged y-coordinate, and based on the y-coordinate and the interchanged x-coordinate, respectively; and wherein each of the probability of the x- and y-coordinate comprising a given value when scanned in the second scanning order is the same as or similar to the probability of the interchanged x- and y- coordinate, respectively, comprising the given value when the coefficients are scanned in the first scanning order.