fix example code for storage api