write updated