added formula for aspect ratio