started persistence code