fixed update instead of replace