how to persist