working on 2D periodic BC