3 : Set boundary types