dont allow local storage to overflow