added flip directive