change BASE_URL to @base_url