Flip top/bottom to correct declarations