added track area rectangle calculation