working on cloudfront url function