update s3 method