adding persistence functions.