remove getbucketlocation function