make both margin and border passable