started implementing the persistence