model to localStorage procedures