modifed local storage wrapper declaration