added saving right after creating a new pearl