s3client function call with wrong parameters order