updatend cleaned up