Change orientation and type