properly persiting data