deprecated for storage functions