elegance code for persistence.synchronization

change in the code structure