work on orientation and corners