added flip class