1 for boundary, 2 for rested block