added flipping tables for use later.