added flip hor/ver