got the self save logic