An image decoding method performed by a decoding apparatus, the method comprising: deriving a history-based motion vector prediction, HMVP, buffer for a current block, wherein the HMVP buffer comprises an HMVP candidate including motion information of a previous block which is decoded prior to the current block; configuring motion information candidate list based on the HMVP candidate comprised in the HMVP buffer, wherein for configuring the motion information candidate list, the HMVP candidate is added in the motion information candidate list; deriving motion information of the current block based on the motion information candidate list; generating prediction samples for the current block based on the motion information; and generating reconstructed samples based on the prediction samples, wherein a current picture includes more than one tile, wherein the current block is for one of coding units, CUs, split from a coding tree unit, CTU, wherein the HMVP buffer is updated by adding motion information of a direct previous block which is decoded directly prior to the current block as a new HMVP candidate, wherein for the current picture consisting of 2 tile rows and 2 tile columns, the HMVP buffer is initialized at a first CTU in a processing order in each CTU row of each tile, wherein based on HMVP buffer being initialized, the number of HMVP candidates comprised in the HMVP buffer is set to zero, wherein the method further comprising: determining whether the CTU is a first CTU in a processing order in a CTU row of a current tile of the current picture consisting of the 2 tile rows and the 2 tile columns, wherein the HMVP buffer for the current block is derived based on the result of the determination, and wherein based on the result of the determining that the CTU is the first CTU in the processing order in the CTU row of the current tile of the current picture consisting of the 2 tile rows and the 2 tile columns, the HMVP buffer is initialized for the CTU. deriving a history-based motion vector prediction, HMVP, buffer for a current block, wherein the HMVP buffer comprises an HMVP candidate including motion information of a previous block which is decoded prior to the current block; configuring motion information candidate list based on the HMVP candidate comprised in the HMVP buffer, wherein for configuring the motion information candidate list, the HMVP candidate is added in the motion information candidate list; deriving motion information of the current block based on the motion information candidate list; generating prediction samples for the current block based on the motion information; and generating reconstructed samples based on the prediction samples, wherein a current picture includes more than one tile, wherein the current block is for one of coding units, CUs, split from a coding tree unit, CTU, wherein the HMVP buffer is updated by adding motion information of a direct previous block which is decoded directly prior to the current block as a new HMVP candidate, wherein for the current picture consisting of 2 tile rows and 2 tile columns, the HMVP buffer is initialized at a first CTU in a processing order in each CTU row of each tile, wherein based on HMVP buffer being initialized, the number of HMVP candidates comprised in the HMVP buffer is set to zero, wherein the method further comprising: determining whether the CTU is a first CTU in a processing order in a CTU row of a current tile of the current picture consisting of the 2 tile rows and the 2 tile columns, wherein the HMVP buffer for the current block is derived based on the result of the determination, and wherein based on the result of the determining that the CTU is the first CTU in the processing order in the CTU row of the current tile of the current picture consisting of the 2 tile rows and the 2 tile columns, the HMVP buffer is initialized for the CTU. determining whether the CTU is a first CTU in a processing order in a CTU row of a current tile of the current picture consisting of the 2 tile rows and the 2 tile columns, wherein the HMVP buffer for the current block is derived based on the result of the determination, and wherein based on the result of the determining that the CTU is the first CTU in the processing order in the CTU row of the current tile of the current picture consisting of the 2 tile rows and the 2 tile columns, the HMVP buffer is initialized for the CTU.