changed to rectangular system