added persistence for data