updated Class.unsaved method