corrected computation of aspect ratio constraint