optimize real_url function