added merging to storage