reverted back to flipping the width height