changed the sequence of parts of the string for the amazon s3 url