update aspect ratio