correct linear ports arranging